package com.woshua.mvpmodel.mvp.model;

import android.os.Handler;

import com.woshua.mvpmodel.R;
import com.woshua.mvpmodel.mvp.model.bean.GirlBean;

import java.util.ArrayList;
import java.util.List;

public class GirlModel implements IGirlModel {

    @Override
    public void loadData(final IGirlResult iGirlResult) {

        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                List<GirlBean> girls=new ArrayList<>();
                girls.add(new GirlBean("小红", R.mipmap.one));
                girls.add(new GirlBean("小吕", R.mipmap.two));
                girls.add(new GirlBean("小兰", R.mipmap.one));
                girls.add(new GirlBean("小啊", R.mipmap.two));
                girls.add(new GirlBean("大红", R.mipmap.one));
                girls.add(new GirlBean("红红", R.mipmap.two));
                girls.add(new GirlBean("泗洪", R.mipmap.one));
                girls.add(new GirlBean("小红", R.mipmap.two));

                iGirlResult.onComplete(girls);
            }
        },1000);
    }
}
